<template>
    <scroll-view scroll-y="true" class="wallent"
                 :isFinished="footerVisbale"
                 @end="onReachBottom"
    >
        <div v-for="(item, index) in list" :key="index">
            <div class="cardItem">
                <div class="left">
                    <span>{{item.txt}}</span>
                    <span class="time">{{item.createdAt}}</span>
                </div>
                <div class="money">
                    <span>{{item.totalMoney}}元</span>
                    <span class="desc"
                          v-if="item.type==1||item.type==14">充值{{item.money}}元,赠送{{item.givemoney}}元</span>
                    <span class="desc"
                         v-if="(item.type==0||item.type==7)&&item.credit">钱包支付：{{item.wallent}}元,信用支付：{{item.credit}}元</span>
                </div>
            </div>
        </div>
        <span class="tip" v-if="footerVisbale">小遛已滑到底部啦,主人</span>
    </scroll-view>
</template>
<script>
    import wallent from "./wallent";
    export default {
        mixins: [wallent],
    }
</script>
<style scoped lang="stylus">
    @import "./wallent.styl"
</style>
